//1.安装  
//2.伪造接口
// 3.mock/index.js  在main.js 注入
import Mock, { mock } from 'mockjs'
import redailData from './redailData'
import homeData from './homeData'
import retailData from './retailData'
import loginData from './loginData'
import workData from './workData'




// 接口名  /retail （恶霸）
Mock.mock(/\/retail/, 'get', retailData.getRetailData)




//接口名 /detail 周李月的
//参数1 接口的正则表达式，没有引号
//  参数2  请求的类型 get post put delete
// 参数3 就是返回给前端的数据
Mock.mock(/\/retail/, 'get', redailData.getRetailData)
//接口 retail删除单个接口
Mock.mock(/\/retaildeleByid/, 'post', redailData.delDrugData)
//添加
Mock.mock(/\/adddruglist/, 'post', redailData.addlistData)


//VIP 方琦的
Mock.mock(/\getvipdata/, 'get', homeData.getVipData)
//删除接口
Mock.mock(/\getdelet/, 'post', homeData.getDeletData)

// Mock.mock(/\gethome/, 'get', homeData.getHomeData)

//慧姐的
import statisticsData from '../mock/statisticsData.js'
Mock.mock(/\/statistics/, 'get', statisticsData.getstatistics)//查询接口
//建航的
Mock.mock(/\/login/, 'post', loginData.loginData)//登陆接口
Mock.mock(/\/getuser/, 'post', loginData.getUserDate)//获取用户信息
Mock.mock(/\/register/, 'post', loginData.registerData)//注册接口
Mock.mock(/\/updatapassword/, 'post', loginData.updatapasswordData)//注册接口

Mock.mock(/\/login/, 'post', loginData.loginData)//登陆接口
Mock.mock(/\/getuser/, 'post', loginData.getUserDate)//获取用户信息
Mock.mock(/\/register/, 'post', loginData.registerData)//注册接口

//返回前端接口数据work页面
Mock.mock(/\/work/, 'get', workData.getwork)

